package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.pojo.FieldAttrEntityForDecisionInfo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author: hongxiao
 * @date: 2021-11-18 21:49
 */
@Getter
@Setter
@ToString
public class FormDecisionInfoUpdateDTO extends BaseDTO {
    private static final long serialVersionUID = 8003699072414207872L;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.formUpdate.appId.NotNull}")
    private Long appId;
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.formUpdate.formId.NotNull}")
    private Long formId;

    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.formUpdate.formExplainId.NotNull}")
    private Long formExplainId;

    @Valid
    @NotNull(message = "{dto.msg.formUpdate.formAttr.NotNull}")
    private FormEntityUpdateDTO formAttr;

    /**
     * 表单字段描述信息
     */
    @Valid
    @Size(max = 170, message = "{dto.msg.formUpdate.explainList.Size}")
    private List<FieldAttrEntityForDecisionInfo> explainList;

    /**
     * 业务类型
     */
    private Integer businessType;

    /**
     * 菜单id
     */
    private Long menuId;
}
